<#import '/spring.ftl' as sps>
<#macro userDetails userId>
<div id="gridtoolbar">
    <form id="gridform" class="jxform jxlayout-form">
        <table>
            <tr>
                <td>
                    <input class="form-control w-300px" name="name" placeholder="请输入角色名称/简拼关键字">
                </td>
                <td>
                    <button class="btn btn-primary ml-5" type="submit">
                        <i class="fa fa-search"></i> 查询
                    </button>
                </td>
            </tr>
        </table>
    </form>
</div>
<table id="jx-owner-role-grid" data-options="
                                url:'<@sps.url '/auth/urmap/usergrid?userId=${userId}'/>',
                                cls:'jxgrid-sub',border:true,fit:true,onDblClickRow: jx.auth.onRoleGridDblClickRow,
                                form: '#gridform',toolbar: '#gridtoolbar'">
    <thead>
        <tr>
            <th data-options="title: '角色名称',field:'name',width:200"></th>
            <th data-options="title: '部门', field: 'departmentName', width: 200, align: 'center'"></th>
        </tr>
    </thead>
</table>
</#macro>